import {
  addedRefuseList,
} from "@/api/system/addedServices";

export const tableConfig = {
  hasPage: true,
  hasCheck: true,
  request: (params) => {
    return addedRefuseList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data || {}
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'xmbzNo',
      label: '后台单号',
    },
    {
      prop: 'platformOrderId',
      label: '平台单号',
    },
    {
      prop: 'type',
      label: '服务类型',
      isSlot: true,
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}